package s4_synchronizedCode;

public class DrawMoney extends Thread{
    private Account account;
    public DrawMoney(Account account, String name){
        super(name);
        this.account = account;
    }

    @Override
    public void run() {
        // 取钱
        account.draw(100000);
    }
}
